﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchRadicado.aspx.cs" Inherits="MS.InformationManagement.WP.Layouts.MS.InformationManagement.WP.SearchRadicado" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<link rel="stylesheet" type="text/css" href="/_layouts/INC/MS.InformationManagement/css/layoutInterna.css" />

<div class="form-container">
<h3>Busqueda radicados existentes</h3>
    <div class="form-row-search">
        <div class="cellSearch">
            <asp:Label ID="lblRadicado" runat="server" Text="Radicado" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtRadicado" runat="server"></asp:TextBox>
        </div>
        <div class="cellSearch">
            <asp:Label ID="lblRemitente" runat="server" Text="Remitente" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtRemitente" runat="server" ></asp:TextBox>
        </div> 
        <div class="cellSearch">
            <asp:Label ID="lbl" runat="server" Text="Tipo documento" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtTipoDocumental" runat="server" ></asp:TextBox>
        </div>
        <div>
            <asp:ImageButton ID="imgSearch" ImageUrl="/_layouts/Images/searchqry.gif" Width="17" Height="17" OnClick="SearchAction" runat="server" />
        </div>
     </div>
     <div class="form-row" id="divGridResults" runat="server">
        <div class="cell12">
            <asp:GridView ID="gvItems" runat="server" AutoGenerateColumns="False" 
                gridLines="None" Cellspacing="1" Cellpadding="4" border="0" 
                CssClass="tablaDatos" HeaderStyle-CssClass="tituloGrid" 
                RowStyle-CssClass="claFilaGrid" 
                EnableModelValidation="True"  >
                <EmptyDataTemplate>
                    <asp:Label ID="lblEmpty" runat="server" Text="No existen contactos con los valores de búsqueda utilizados"></asp:Label>   
                </EmptyDataTemplate>
                      <Columns>
              <asp:TemplateField HeaderText="Radicado">
                <ItemTemplate>
                  <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "NoRadicado")%>'></asp:Label>
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Fecha creación">
               <ItemTemplate>
                  <div align="center">
                    <asp:Label ID="lblDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Created", "{0:dd/MM/yyyy hh:mm:ss tt}")%>'></asp:Label>
                  </div> 
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Remitente \ destinatario">
                <ItemTemplate>
                 <div align="center">
                  <asp:Label ID="lblSize" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RemitenteDestinatario") %>'></asp:Label>
                 </div>
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Tipo documental">
                <ItemTemplate>
                 <div align="center">
                  <asp:Label ID="lblSize" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "TipoDocumento") %>'></asp:Label>
                 </div>
                </ItemTemplate>
              </asp:TemplateField>
          </Columns>
                <HeaderStyle CssClass="tituloGrid" />
                <RowStyle CssClass="claFilaGrid" />
            </asp:GridView>
       </div>
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
B&uacute;squeda de radicado
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
B&uacute;squeda de radicado
</asp:Content>
